package com.zhisheng.gufei.produce.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;

import com.zhisheng.core.service.impl.BaseServiceImpl;
import com.zhisheng.gufei.produce.dao.FacilitiesDao;
import com.zhisheng.gufei.produce.entity.GrabageFacilities;
import com.zhisheng.gufei.produce.service.FacilitiesService;

/**
 * @author xgye
 * @date 2009-9-11
 * @version $Id$
 */
@Service("facilitiesService")
public class FacilitiesServiceImpl extends BaseServiceImpl<GrabageFacilities, Integer, FacilitiesDao> 
                            implements FacilitiesService {

    
    public void setFacilitiesDao(FacilitiesDao facilitiesDao) {
        this.entityDao = facilitiesDao;
    }

    public void saveFacilities(GrabageFacilities facilities) {
        this.entityDao.save(facilities);
    }

    public List<GrabageFacilities> getInitialFacilities() {
        List<GrabageFacilities> gf = new ArrayList<GrabageFacilities>();
        for (int i = 0; i < 5; i++) {
	        GrabageFacilities fa = new GrabageFacilities();
	        gf.add(fa);
        }
        return gf;
    }
}
